package lab2.demo;
import org.springframework.core.env.Environment;
import org.springframework.boot.CommandLineRunner;

import java.util.Objects;

public class Customerrunner implements org.springframework.boot.CommandLineRunner {

    Environment a;

    public Customerrunner (Environment a){
        this.a=a;
    }

    @Override
    public void run(String... args) throws Exception {
        System.out.println("auto CommandLineRunner.");
        System.out.println("random string:".concat(a.getProperty("random.")));
    }
}
